/*
 * XML Type:  StatementEndTransactionResponse
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.StatementEndTransactionResponse
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML StatementEndTransactionResponse(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class StatementEndTransactionResponseImpl extends net.ofx.types.x2003.x04.impl.AbstractTransactionResponseImpl implements net.ofx.types.x2003.x04.StatementEndTransactionResponse
{
    
    public StatementEndTransactionResponseImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName STMTENDRS$0 = 
        new javax.xml.namespace.QName("", "STMTENDRS");
    
    
    /**
     * Gets the "STMTENDRS" element
     */
    public net.ofx.types.x2003.x04.StatementEndResponse getSTMTENDRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.StatementEndResponse target = null;
            target = (net.ofx.types.x2003.x04.StatementEndResponse)get_store().find_element_user(STMTENDRS$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "STMTENDRS" element
     */
    public boolean isSetSTMTENDRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(STMTENDRS$0) != 0;
        }
    }
    
    /**
     * Sets the "STMTENDRS" element
     */
    public void setSTMTENDRS(net.ofx.types.x2003.x04.StatementEndResponse stmtendrs)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.StatementEndResponse target = null;
            target = (net.ofx.types.x2003.x04.StatementEndResponse)get_store().find_element_user(STMTENDRS$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.StatementEndResponse)get_store().add_element_user(STMTENDRS$0);
            }
            target.set(stmtendrs);
        }
    }
    
    /**
     * Appends and returns a new empty "STMTENDRS" element
     */
    public net.ofx.types.x2003.x04.StatementEndResponse addNewSTMTENDRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.StatementEndResponse target = null;
            target = (net.ofx.types.x2003.x04.StatementEndResponse)get_store().add_element_user(STMTENDRS$0);
            return target;
        }
    }
    
    /**
     * Unsets the "STMTENDRS" element
     */
    public void unsetSTMTENDRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(STMTENDRS$0, 0);
        }
    }
}
